package _1._0._0._127.ormrpc.services.WSReceiveBillFacade;

public class WSReceiveBillFacadeSrvProxyProxy implements WSReceiveBillFacadeSrvProxy {
    private String _endpoint = null;
    private WSReceiveBillFacadeSrvProxy wSReceiveBillFacadeSrvProxy = null;

    public WSReceiveBillFacadeSrvProxyProxy() {
        _initWSReceiveBillFacadeSrvProxyProxy();
    }

    public WSReceiveBillFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSReceiveBillFacadeSrvProxyProxy();
    }

    private void _initWSReceiveBillFacadeSrvProxyProxy() {
        try {
            wSReceiveBillFacadeSrvProxy = (new WSReceiveBillFacadeSrvProxyServiceLocator()).getWSReceiveBillFacade();
            if (wSReceiveBillFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSReceiveBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSReceiveBillFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSReceiveBillFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSReceiveBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSReceiveBillFacadeSrvProxy getWSReceiveBillFacadeSrvProxy() {
        if (wSReceiveBillFacadeSrvProxy == null)
            _initWSReceiveBillFacadeSrvProxyProxy();
        return wSReceiveBillFacadeSrvProxy;
    }

    public String[] submit(String xmlData) throws java.rmi.RemoteException, receivebillfacade.client.WSInvokeException {
        if (wSReceiveBillFacadeSrvProxy == null)
            _initWSReceiveBillFacadeSrvProxyProxy();
        return wSReceiveBillFacadeSrvProxy.submit(xmlData);
    }


}